package com.example.allplan.JavaBean;

public class JiHuaTiaoJavaBean implements Comparable<JiHuaTiaoJavaBean>{
    public JiHuaTiaoJavaBean(int id, int chu_shi_zhi, int xian_zai_zhi, int pai_xu_you_biao, String mingcheng, int zan_cun_zhi) {
        this.id = id;
        this.chu_shi_zhi = chu_shi_zhi;
        this.xian_zai_zhi = xian_zai_zhi;
        this.pai_xu_you_biao = pai_xu_you_biao;
        this.mingcheng = mingcheng;
        this.zan_cun_zhi = zan_cun_zhi;
    }

    /**
     * id : 1
     * chu_shi_zhi : 1
     * xian_zai_zhi : 1
     * pai_xu_you_biao : 1
     * mingcheng : s
     * zan_cun_zhi : 1
     */

    private int id;
    private int chu_shi_zhi;
    private int xian_zai_zhi;
    private int pai_xu_you_biao;
    private String mingcheng;
    private int zan_cun_zhi;

    public JiHuaTiaoJavaBean(int id,int pai_xu_you_biao) {
        this.id=id;
        this.pai_xu_you_biao=pai_xu_you_biao;
        this.chu_shi_zhi=0;
        this.mingcheng="一条计划";
        this.xian_zai_zhi=0;
        this.zan_cun_zhi=0;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getChu_shi_zhi() {
        return chu_shi_zhi;
    }

    public void setChu_shi_zhi(int chu_shi_zhi) {
        this.chu_shi_zhi = chu_shi_zhi;
    }

    public int getXian_zai_zhi() {
        return xian_zai_zhi;
    }

    public void setXian_zai_zhi(int xian_zai_zhi) {
        this.xian_zai_zhi = xian_zai_zhi;
    }

    public int getPai_xu_you_biao() {
        return pai_xu_you_biao;
    }

    public void setPai_xu_you_biao(int pai_xu_you_biao) {
        this.pai_xu_you_biao = pai_xu_you_biao;
    }

    public String getMingcheng() {
        return mingcheng;
    }

    public void setMingcheng(String mingcheng) {
        this.mingcheng = mingcheng;
    }

    public int getZan_cun_zhi() {
        return zan_cun_zhi;
    }

    public void setZan_cun_zhi(int zan_cun_zhi) {
        this.zan_cun_zhi = zan_cun_zhi;
    }

    @Override
    public int compareTo(JiHuaTiaoJavaBean o) {
       if(o.getPai_xu_you_biao()>this.pai_xu_you_biao)return -1;
       else return 1;
    }
}
